<template>
    <div class="reminder">
        <search-form :searchArray="searchArray"></search-form>
        <elTable :formData="formData" @tableData="getList" ref="dataInfo">
                    <el-table-column prop="name" label="订单号" align="center"></el-table-column>
                    <el-table-column prop="group" label="会员登录名" align="center"></el-table-column>
                    <el-table-column prop="group" label="药店名称" align="center"></el-table-column>
                    <el-table-column prop="group" label="电话号码" align="center"></el-table-column>
                    <el-table-column prop="loginTime" label="催单时间" align="center"></el-table-column>
                    <el-table-column prop="action" label="操作" align="center">
                        <template slot-scope="">

                        </template>
                    </el-table-column>
        </elTable>
    </div>
</template>
<script>
import elTable from "@/components/xForm/elTable"
export default {
    name: 'Reminder',
    components: {elTable},
    data () {
        return {
            formData: {
                name: "",
                userName: "",
                userStatus: "",
                currentPage: 1,
                pageSize: 10,
            },
            searchArray: [
                {
                    type:'input',
                    placeholder: '请输入订单号',
                    value: '',
                    label: '订单号',
                },
                {
                    type:'input',
                    placeholder: '请输入药店名称',
                    value: '',
                    label: '药店名称',
                },
                {
                    type: "select",
                    placeholder: "请选择处理状态",
                    filterable: false,
                    value: "",
                    width: '',
                    label: '处理状态',
                    list: [
                    {
                        label: "",
                        value: ""
                    }
                    ]
                },
                {
                    type:'input',
                    placeholder: '请输入手机号码',
                    value: '',
                    label: '手机号码',
                },
                {
                    type: "select",
                    placeholder: "请选择账号类型",
                    filterable: false,
                    value: "",
                    width: '',
                    label: '账号类型',
                    list: [
                    {
                        label: "",
                        value: ""
                    }
                    ]
                },
            ],
        }
    },
    methods: {
        getList(pageNo) {
            let dataInfo = [
                {
                    id: 1,
                    name: "你好",
                    createTime: '1595244696000'
                },
                {
                    id: 2,
                    name: "你好1",
                    createTime: '1595244696000'
                },
            ];
            let total = 10;
            this.$nextTick(() => {
                this.$refs.dataInfo.loadData(dataInfo, total);
            });
        },
    }
}
</script>
<style lang="scss" scoped>
.reminder {
    .search-form {
        margin-bottom: 16px;
    }
}
</style>